package com.xushi.dao;

import com.xushi.model.ActivityGrade;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 14553 on 2018/5/5.
 */
@Repository("activityGradeDao")
public interface ActivityGradeRepository extends CrudRepository<ActivityGrade, Integer> {

    List<ActivityGrade> findActivityGradeByActivityId(String activityId);

    List<ActivityGrade> findActivityGradeByActivityIdAndUsername(String activityId, String username);
}
